import sys
sys.path.append('../')

from testenv import *
from hdc import Hdc
from uitest import UITest
from datetime import datetime

def test():
    screen_capture = UITest.ScreenCapture(Hdc(), "")
    screen_capture.capture()
    screen_capture.capture_recv(f"screen_{datetime.now().strftime('%Y%m%d%H%M%S')}.jpeg")
    screen_capture.clear()

if __name__ == "__main__":
    test()